<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>EOS.IO: bancor::converter_contract&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::connector&lt; CurrencyType, Weight, Base &gt; Struct Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN3.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacebancor.html">bancor</a></li><li class="navelem"><a class="el" href="classbancor_1_1converter__contract.html">converter_contract</a></li><li class="navelem"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structbancor_1_1converter__contract_1_1connector-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bancor::converter_contract&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::connector&lt; CurrencyType, Weight, Base &gt; Struct Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="converter_8hpp_source.html">converter.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a0ed25c1ccaf3a9f6d45f8960f55ec2df"><td class="memItemLeft" align="right" valign="top">typedef CurrencyType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a0ed25c1ccaf3a9f6d45f8960f55ec2df">currency_type</a></td></tr>
<tr class="separator:a0ed25c1ccaf3a9f6d45f8960f55ec2df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69e701c71ae753f70771703badc0e9ae"><td class="memItemLeft" align="right" valign="top">typedef converter_currency::token_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a></td></tr>
<tr class="separator:a69e701c71ae753f70771703badc0e9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af66116d51aa7c41f03ee1abfc21cb51e"><td class="memItemLeft" align="right" valign="top">typedef currency_type::token_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a></td></tr>
<tr class="separator:af66116d51aa7c41f03ee1abfc21cb51e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a64f2755a7c9e6a66742af82ebf601421"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a64f2755a7c9e6a66742af82ebf601421">convert_to_converter</a> (<a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a> in, <a class="el" href="structbancor_1_1converter__contract_1_1converter__state.html">converter_state</a> &amp;state)</td></tr>
<tr class="separator:a64f2755a7c9e6a66742af82ebf601421"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33dd73e69a5ba381f7112f91ba5a047d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a33dd73e69a5ba381f7112f91ba5a047d">convert_from_converter</a> (<a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a> converter_in, <a class="el" href="structbancor_1_1converter__contract_1_1converter__state.html">converter_state</a> &amp;state)</td></tr>
<tr class="separator:a33dd73e69a5ba381f7112f91ba5a047d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a69e701c71ae753f70771703badc0e9ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69e701c71ae753f70771703badc0e9ae">&#9670;&nbsp;</a></span>converter_token_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ConverterCurrency , typename FirstCurrency , typename SecondCurrency &gt; </div>
<div class="memtemplate">
template&lt;typename CurrencyType , uint32_t Weight = 500000, uint32_t Base = 1000000&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef converter_currency::token_type <a class="el" href="classbancor_1_1converter__contract.html">bancor::converter_contract</a>&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a>&lt; CurrencyType, Weight, Base &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0ed25c1ccaf3a9f6d45f8960f55ec2df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ed25c1ccaf3a9f6d45f8960f55ec2df">&#9670;&nbsp;</a></span>currency_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ConverterCurrency , typename FirstCurrency , typename SecondCurrency &gt; </div>
<div class="memtemplate">
template&lt;typename CurrencyType , uint32_t Weight = 500000, uint32_t Base = 1000000&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef CurrencyType <a class="el" href="classbancor_1_1converter__contract.html">bancor::converter_contract</a>&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a>&lt; CurrencyType, Weight, Base &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a0ed25c1ccaf3a9f6d45f8960f55ec2df">currency_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af66116d51aa7c41f03ee1abfc21cb51e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af66116d51aa7c41f03ee1abfc21cb51e">&#9670;&nbsp;</a></span>in_token_type</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ConverterCurrency , typename FirstCurrency , typename SecondCurrency &gt; </div>
<div class="memtemplate">
template&lt;typename CurrencyType , uint32_t Weight = 500000, uint32_t Base = 1000000&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef currency_type::token_type <a class="el" href="classbancor_1_1converter__contract.html">bancor::converter_contract</a>&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a>&lt; CurrencyType, Weight, Base &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a33dd73e69a5ba381f7112f91ba5a047d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33dd73e69a5ba381f7112f91ba5a047d">&#9670;&nbsp;</a></span>convert_from_converter()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ConverterCurrency , typename FirstCurrency , typename SecondCurrency &gt; </div>
<div class="memtemplate">
template&lt;typename CurrencyType , uint32_t Weight = 500000, uint32_t Base = 1000000&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a> <a class="el" href="classbancor_1_1converter__contract.html">bancor::converter_contract</a>&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a>&lt; CurrencyType, Weight, Base &gt;::convert_from_converter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a>&#160;</td>
          <td class="paramname"><em>converter_in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structbancor_1_1converter__contract_1_1converter__state.html">converter_state</a> &amp;&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a64f2755a7c9e6a66742af82ebf601421"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64f2755a7c9e6a66742af82ebf601421">&#9670;&nbsp;</a></span>convert_to_converter()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename ConverterCurrency , typename FirstCurrency , typename SecondCurrency &gt; </div>
<div class="memtemplate">
template&lt;typename CurrencyType , uint32_t Weight = 500000, uint32_t Base = 1000000&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#a69e701c71ae753f70771703badc0e9ae">converter_token_type</a> <a class="el" href="classbancor_1_1converter__contract.html">bancor::converter_contract</a>&lt; ConverterCurrency, FirstCurrency, SecondCurrency &gt;::<a class="el" href="structbancor_1_1converter__contract_1_1connector.html">connector</a>&lt; CurrencyType, Weight, Base &gt;::convert_to_converter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structbancor_1_1converter__contract_1_1connector.html#af66116d51aa7c41f03ee1abfc21cb51e">in_token_type</a>&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structbancor_1_1converter__contract_1_1converter__state.html">converter_state</a> &amp;&#160;</td>
          <td class="paramname"><em>state</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>balance already changed when transfer executed, get pre-transfer balance </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>contracts/bancor/<a class="el" href="converter_8hpp_source.html">converter.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
